********************************************************************************
*	Do-File for: Replication file (MASTER)
*	"Bring a Friend: Leveraging Financial and Peer Support to Improve Women's Reproductive Agency in India"
*	By: S Anukriti, Catalina Herrera-Almanza, Mahesh Karra
*	Date: 17 December 2025
********************************************************************************

version 17
set seed 12182025

************************************
**# A. Working Directory
************************************

***STEP 0: SETTING WORKING DIRECTORY
***To use the correct file directory, replace line 15 with the appropriate file path where the replication data file and do-files are stored.
global path "INSERT PATH HERE"
global repo "$path"

*** Create empty "tables" folder
if ("$repo" != "") {
    // shell rm -rf "${repo}/tables" // For mac
	cap mkdir "${repo}/tables"
}


************************************
**# B. Compiling Main and Appendix do files
************************************

**## B1. Compiling Main tables

global repo "$path"
do b_main_tables.do

**## B2. Compiling Appendix tables

global repo "$path"
do c_appendix_tables.do

**## B2. Compiling Appendix tables with R Script

** Run the R script "d_additional_tables.R" that is provided as part of the replication package.